<%@ Page Language="c#" Inherits="PHSRAG.Insight21.COI.COICustomReport" CodeFile="COICustomReport.aspx.cs" %>

<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Search for the reports based on charts</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />

    <script language="javascript" type="text/javascript">
		function Save()
		{
			if (window.event.keyCode == 13)
			{
				obj=document.getElementById("search");
				if (obj)
				{
				obj.click();
				}
				window.event.returnValue = false;				
			}
		}
    </script>

</head>
<body onkeypress="Save()">
    <form id="reportSummary" method="post" runat="server">
        <table class="Container" width="100%">
            <tr>
                <td>
                    <asp:Panel ID="headerSection" runat="server">
                        <table class="header" width="100%">
                            <tr>
                                <td>
                                    <cc1:Header ID="header" runat="server"></cc1:Header>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <cc1:CoISubNavigation ID="coiSubNavigation" runat="server"></cc1:CoISubNavigation>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <cc2:BreadCrumb ID="breadCrumb" runat="server" HighlightCurrentPage="true"></cc2:BreadCrumb>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <table cellspacing="10" cellpadding="10" width="100%" style="background-color: #ffffff">
                        <tr>
                            <td>
                                <asp:Panel ID="containerPanel" Visible="True" runat="server" Width="100%" Wrap="true">
                                    <table class="Search" style="border: #193968 1px solid" cellspacing="0" cellpadding="0"
                                        width="100%">
                                        <tbody>
                                            <tr>
                                                <td>
                                                    <table cellspacing="3" cellpadding="0" width="100%" border="0">
                                                        <tr valign="middle">
                                                            <td align="right">
                                                                <span style="white-space: nowrap; font-weight: bold">Last Name:</span></td>
                                                            <td align="left">
                                                                <span style="white-space: nowrap;">
                                                                    <asp:TextBox ID="lastName" runat="server"></asp:TextBox>
                                                                </span>
                                                            </td>
                                                            <td align="right">
                                                                <span style="white-space: nowrap; font-weight: bold">Start date:</span></td>
                                                            <td align="left">
                                                                <span style="white-space: nowrap;">
                                                                    <cc2:Calendar ID="startDate" runat="server" DropDownListNavigation="true" BeginYear="1985"
                                                                        EndYear="2049"></cc2:Calendar>
                                                                </span>
                                                            </td>
                                                            <td align="right" rowspan="3" valign="middle">
                                                                <span style="white-space: nowrap; font-weight: bold">Role:</span></td>
                                                            <td align="left" rowspan="3">
                                                                <span style="white-space: nowrap;">
                                                                    <asp:ListBox ID="role" runat="server" CssClass="FlatDropdown" DataValueField="RefCode"
                                                                        DataTextField="RefMeaning" SelectionMode="Multiple"></asp:ListBox></span></td>
                                                        </tr>
                                                        <tr valign="middle">
                                                            <td align="right">
                                                                <span style="white-space: nowrap; font-weight: bold">First Name:</span></td>
                                                            <td align="left">
                                                                <span style="white-space: nowrap;">
                                                                    <asp:TextBox ID="firstName" runat="server"></asp:TextBox></span></td>
                                                            <td align="right">
                                                                <span style="white-space: nowrap; font-weight: bold">End date:</span></td>
                                                            <td>
                                                                <span style="white-space: nowrap;">
                                                                    <cc2:Calendar ID="endDate" runat="server" DropDownListNavigation="true" BeginYear="1985"
                                                                        EndYear="2049"></cc2:Calendar>
                                                                </span>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="right">
                                                                <span style="white-space: nowrap; font-weight: bold">User Name:</span></td>
                                                            <td align="left">
                                                                <asp:TextBox ID="userName" runat="server"></asp:TextBox></td>
                                                            <td align="right">
                                                                <span style="white-space: nowrap; font-weight: bold">Nothing to disclose:</span></td>
                                                            <td align="left">
                                                                <span style="white-space: nowrap;">
                                                                    <asp:CheckBox ID="disclose" runat="server"></asp:CheckBox></span></td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="8">
                                                                <hr />
                                                            </td>
                                                        </tr>
                                                        <tr valign="middle">
                                                            <td align="right" class="orangelabel">
                                                                <span style="white-space: nowrap; font-weight: bold">Individual chart:</span></td>
                                                            <td align="left">
                                                                <span style="white-space: nowrap;">
                                                                    <asp:CheckBoxList ID="selectChart" runat="server" RepeatLayout="Flow" CellSpacing="0"
                                                                        CellPadding="0" RepeatDirection="Horizontal" OnSelectedIndexChanged="OnSelectedIndexChanged"
                                                                        AutoPostBack="true">
                                                                        <asp:ListItem Value="0">Chart-I</asp:ListItem>
                                                                        <asp:ListItem Value="1">Chart-II</asp:ListItem>
                                                                        <asp:ListItem Value="2">Chart-III</asp:ListItem>
                                                                        <asp:ListItem Value="2">Chart-IV</asp:ListItem>
                                                                    </asp:CheckBoxList></span></td>
                                                            <td align="right" class="orangelabel">
                                                                <span style="white-space: nowrap; font-weight: bold">Outside trustee chart:</span></td>
                                                            <td align="left">
                                                                <span style="white-space: nowrap;">
                                                                    <asp:CheckBoxList ID="selectOutsideTrusteeChart" runat="server" RepeatLayout="Flow"
                                                                        CellSpacing="0" CellPadding="0" RepeatDirection="Horizontal" OnSelectedIndexChanged="OnOutsideTrusteeChartSelectionChanged"
                                                                        AutoPostBack="true">
                                                                        <asp:ListItem Value="0">Chart-I</asp:ListItem>
                                                                        <asp:ListItem Value="1">Chart-II</asp:ListItem>
                                                                    </asp:CheckBoxList></span></td>
                                                            <td align="right">
                                                            </td>
                                                            <td align="left">
                                                            </td>
                                                        </tr>
                                                        <tr valign="middle">
                                                            <td align="right">
                                                                <span style="white-space: nowrap; font-weight: bold">Non-Partner's entity:</span></td>
                                                            <td align="left">
                                                                <span style="white-space: nowrap;">
                                                                    <asp:TextBox ID="companyName" runat="server" CssClass="DataInput"></asp:TextBox></span></td>
                                                            <td align="right">
                                                                <span style="white-space: nowrap; font-weight: bold">Publicly traded company:</span></td>
                                                            <td align="left">
                                                                <span style="white-space: nowrap;">
                                                                    <asp:DropDownList ID="companyType" runat="server" CssClass="flatdropdown">
                                                                    </asp:DropDownList></span></td>
                                                        </tr>
                                                        <tr>
                                                            <td align="right">
                                                                <b>% of total equity owned:</b></td>
                                                            <td align="left">
                                                                <asp:DropDownList ID="perTotalEquityOwned" runat="server" CssClass="flatdropdown">
                                                                </asp:DropDownList></td>
                                                            <td align="right">
                                                                <span style="white-space: nowrap; font-weight: bold">Business nature of outside entity:</span></td>
                                                            <td align="left" colspan="3">
                                                                <span style="white-space: nowrap;">
                                                                    <asp:DropDownList ID="bussinessNatureOfOutsideEntity" runat="server" CssClass="flatdropdown">
                                                                    </asp:DropDownList></span></td>
                                                        </tr>
                                                    </table>
                                                    <table width="100%">
                                                        <tr>
                                                            <td>
                                                                <asp:Panel ID="searchChart1" Visible="false" runat="server" Width="100%">
                                                                    <hr />
                                                                    <table cellspacing="3" cellpadding="0" width="100%">
                                                                        <tr>
                                                                            <td class="orangelabel">
                                                                                &nbsp;<b>Individual Chart-I</b></td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="right">
                                                                                <b>Outside activity:</b></td>
                                                                            <td align="left">
                                                                                <asp:DropDownList ID="serviceType" runat="server" CssClass="flatdropdown">
                                                                                </asp:DropDownList></td>
                                                                            <td align="right">
                                                                                &nbsp;<b>Annual equity compensation:</b>&nbsp;</td>
                                                                            <td align="left">
                                                                                <asp:DropDownList ID="annualEquity" runat="server" CssClass="flatdropdown">
                                                                                </asp:DropDownList></td>
                                                                            <td align="right" style="width: 50%" rowspan="3" valign="middle">
                                                                                <b>Value of total<br />
                                                                                    equity owned:</b>
                                                                            </td>
                                                                            <td valign="top" align="left" rowspan="3">
                                                                                <asp:ListBox ID="equityOwned" runat="server" CssClass="flatdropdown" SelectionMode="Multiple">
                                                                                </asp:ListBox></td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="right">
                                                                                <b>Written agreement:</b></td>
                                                                            <td align="left">
                                                                                <asp:DropDownList ID="selectWrittenAgreementAnswered" runat="server" CssClass="flatdropdown">
                                                                                </asp:DropDownList></td>
                                                                            <td align="right">
                                                                                <b>CSRL review:</td>
                                                                            <td align="left">
                                                                                <asp:DropDownList ID="csrlReview" runat="server" CssClass="flatdropdown">
                                                                                </asp:DropDownList></td>
                                                                            <td colspan="2">
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="right">
                                                                                &nbsp;<b>Fiduciary position:</b></td>
                                                                            <td align="left">
                                                                                <asp:DropDownList ID="selectPosition" runat="server" CssClass="flatdropdown">
                                                                                </asp:DropDownList></td>
                                                                            <td align="right">
                                                                                <b>Days spent on outside activity:</b></td>
                                                                            <td align="left">
                                                                                <asp:TextBox ID="outsideActivityDays" runat="server"></asp:TextBox></td>
                                                                            <td colspan="2">
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="right" style="width: 50%">
                                                                                <b>Annual cash
                                                                                    <br />
                                                                                    compensation:</b></td>
                                                                            <td valign="middle" align="left">
                                                                                <asp:DropDownList ID="incomeOutsideActivity" runat="server" CssClass="flatdropdown">
                                                                                </asp:DropDownList></td>
                                                                            <td align="right">
                                                                                <span style="white-space: nowrap; font-weight: bold">Aggregate equity:</span></td>
                                                                            <td align="left">
                                                                                <span style="white-space: nowrap;">
                                                                                    <asp:CheckBox ID="indAggEquityTotal" runat="server"></asp:CheckBox></span></td>
                                                                            <td colspan="2">
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </asp:Panel>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Panel ID="searchChart2" Visible="False" runat="server" Width="100%">
                                                                    <hr />
                                                                    <table cellspacing="3" cellpadding="3" width="18%">
                                                                        <tr align="left">
                                                                            <td align="left" class="orangelabel" colspan="4">
                                                                                &nbsp;<b>Individual Chart-II</b>
                                                                            </td>
                                                                        </tr>
                                                                        <tr align="left">
                                                                            <td align="right">
                                                                                <b>Value of equity Interest:</b></td>
                                                                            <td align="left" colspan="3">
                                                                                <asp:DropDownList ID="equityinterest" runat="server" CssClass="flatdropdown">
                                                                                </asp:DropDownList>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </asp:Panel>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Panel ID="searchChart3" Visible="false" runat="server" Width="100%">
                                                                    <hr />
                                                                    <table cellspacing="3" cellpadding="3" width="100%">
                                                                        <tr>
                                                                            <td colspan="8" class="orangelabel">
                                                                                &nbsp;<b>Individual Chart-III</b></td>
                                                                        </tr>
                                                                        <tr align="left">
                                                                            <td align="right">
                                                                                <b>Family member:</b></td>
                                                                            <td align="left">
                                                                                <asp:DropDownList ID="memberAssosiated" runat="server" CssClass="flatdropdown">
                                                                                </asp:DropDownList></td>
                                                                            <td align="right">
                                                                                <b>Family member's<br />
                                                                                    association:</b></td>
                                                                            <td align="left">
                                                                                <asp:DropDownList ID="memberRelation" runat="server" CssClass="flatdropdown">
                                                                                </asp:DropDownList></td>
                                                                            <td align="right">
                                                                                <b>Value of equity interest:</b></td>
                                                                            <td align="left">
                                                                                <asp:DropDownList ID="valueEquityInterest" runat="server" CssClass="flatdropdown">
                                                                                </asp:DropDownList></td>
                                                                            <td align="left" colspan="2">
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </asp:Panel>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Panel ID="searchChart4" Visible="false" runat="server">
                                                                    <hr />
                                                                    <table cellspacing="3" cellpadding="3" width="100%">
                                                                        <tr>
                                                                            <td class="orangelabel">
                                                                                &nbsp;<b>Individual Chart-IV</b></td>
                                                                        </tr>
                                                                        <tr align="left">
                                                                            <td align="right">
                                                                                <b>Paid by Partners:</b></td>
                                                                            <td align="left">
                                                                                <asp:DropDownList ID="isPayedByPartners" runat="server" CssClass="flatdropdown">
                                                                                </asp:DropDownList></td>
                                                                            <td align="right">
                                                                                <b>Nature of payment:</b></td>
                                                                            <td align="left">
                                                                                <asp:DropDownList ID="paymentNature" runat="server" CssClass="flatdropdown">
                                                                                </asp:DropDownList></td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="right">
                                                                                <b>Purpose of payment:</b></td>
                                                                            <td align="left">
                                                                                <asp:DropDownList ID="paymentPurpose" runat="server" CssClass="flatdropdown">
                                                                                </asp:DropDownList></td>
                                                                            <td align="right">
                                                                                <b>Annual payment:</b></td>
                                                                            <td align="left">
                                                                                <asp:DropDownList ID="annulaPayment" runat="server" CssClass="flatdropdown">
                                                                                </asp:DropDownList></td>
                                                                        </tr>
                                                                    </table>
                                                                </asp:Panel>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Panel ID="outsideTrusteeChart" Visible="false" runat="server">
                                                                    <hr />
                                                                    <table cellspacing="3" cellpadding="3" width="100%">
                                                                        <tr>
                                                                            <td colspan="4" class="orangelabel">
                                                                                &nbsp;<b>Outside Trustee Chart</b></td>
                                                                        </tr>
                                                                        <tr align="left">
                                                                            <td align="right">
                                                                                <b>Non-partner's association:</b></td>
                                                                            <td align="left">
                                                                                <asp:DropDownList ID="nonPartnerAssociation" runat="server" CssClass="flatdropdown">
                                                                                </asp:DropDownList></td>
                                                                            <td align="right">
                                                                                <b>Brief description of non-partners<br />
                                                                                    entity's business:</b></td>
                                                                            <td align="left">
                                                                                <asp:DropDownList ID="briefDescOfNonPartnersEntity" runat="server" CssClass="flatdropdown">
                                                                                </asp:DropDownList></td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="right">
                                                                                <b>Associated family member</b></td>
                                                                            <td align="left">
                                                                                <asp:DropDownList ID="associatedFamilyMember" runat="server" CssClass="flatdropdown"
                                                                                    Enabled="False">
                                                                                </asp:DropDownList></td>
                                                                            <td colspan="2">
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </asp:Panel>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </asp:Panel>
                            </td>
                        </tr>
                    </table>
                    <table cellspacing="2" cellpadding="2" width="100%">
                        <tr>
                            <td align="right">
                                <asp:ImageButton ID="reset" runat="server" ImageUrl="../Images/b_clearselect.gif"></asp:ImageButton>&nbsp;<asp:ImageButton
                                    ID="search" runat="server" ImageUrl="../Images/b_search_grey.gif"></asp:ImageButton>&nbsp;&nbsp;</td>
                        </tr>
                    </table>
                    <asp:Panel ID="gridContainer" Visible="false" runat="server">
                        <table width="100%">
                            <tr>
                                <td>
                                    <cc2:Annunciator ID="annunciator" runat="server"></cc2:Annunciator>
                                    <br />
                                    <cc2:ActivityIndicator ID="activityIndicator" runat="server"></cc2:ActivityIndicator>
                                </td>
                            </tr>
                        </table>
                        <table class="PlaceBar" cellspacing="0" width="100%">
                            <tr>
                                <td class="PageName">
                                    &nbsp;
                                    <asp:Label ID="recordCount" runat="server"></asp:Label>&nbsp;Records
                                </td>
                                 <td align="right" style="padding-right:5px">
                                    <cc2:DownloadBar ID="downloadBar" runat="server"></cc2:DownloadBar>
                                </td>
                            </tr>
                        </table>
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <cc2:Pager ID="topPager" runat="server"></cc2:Pager>
                                </td>
                            </tr>
                        </table>
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <asp:DataGrid ID="coiReportGrid" runat="server" Width="100%" CssClass="DataGrid"
                                        AutoGenerateColumns="False" AllowSorting="True" AllowPaging="True" AllowCustomPaging="True">
                                        <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                        <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                        <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                        <Columns>
                                            <asp:BoundColumn Visible="False" DataField="COIId"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="Name" HeaderStyle-HorizontalAlign="Center" HeaderText="Name"
                                                SortExpression="Name"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="Supervisor" HeaderStyle-HorizontalAlign="Center" SortExpression="Supervisor"
                                                ReadOnly="True" HeaderText="Supervisor"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="Title" HeaderStyle-HorizontalAlign="Center" SortExpression="Title"
                                                ReadOnly="True" HeaderText="Title"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="PolicyViolation" HeaderStyle-HorizontalAlign="Center"
                                                SortExpression="PolicyViolation" ItemStyle-HorizontalAlign="Center" ReadOnly="True"
                                                HeaderText="Policy Question"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="HasOutsideActivity" SortExpression="OutsideActivity"
                                                ItemStyle-HorizontalAlign="Center" HeaderText="Outside Activity" ReadOnly="True">
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="HasEquityInterests" SortExpression="EquityInterest" ItemStyle-HorizontalAlign="Center"
                                                HeaderText="Equity Interest" ReadOnly="True"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="HasFamilyInterests" SortExpression="FamilyInterest" ItemStyle-HorizontalAlign="Center"
                                                HeaderText="Family Interest" ReadOnly="True"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="otherActivity" SortExpression="OtherActivity" ItemStyle-HorizontalAlign="Center"
                                                HeaderText="Other Activity" ReadOnly="True"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="Royalty" SortExpression="Royalty" ItemStyle-HorizontalAlign="Center"
                                                HeaderText="IP Payment" ReadOnly="True"></asp:BoundColumn>
                                            <asp:ButtonColumn HeaderStyle-HorizontalAlign="Center" HeaderText="Current COI Report"
                                                ButtonType="linkbutton" ItemStyle-Height="20px" CommandName="OpenCurrentCOI"
                                                ItemStyle-HorizontalAlign="Center" Text="<img src='../Images/pdf.jpg' border=0 height='20px' />">
                                            </asp:ButtonColumn>
                                            <asp:BoundColumn DataField="DateSubmitted" HeaderStyle-HorizontalAlign="Center" SortExpression="DateSubmitted"
                                                HeaderText="Date Submitted"></asp:BoundColumn>
                                            <asp:BoundColumn Visible="False" DataField="DocumentId"></asp:BoundColumn>
                                        </Columns>
                                        <PagerStyle Visible="False"></PagerStyle>
                                    </asp:DataGrid></td>
                            </tr>
                        </table>
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <cc2:Pager ID="bottomPager" runat="server"></cc2:Pager>
                                </td>
                            </tr>
                        </table>
                        <table width="100%" >
                            <tr align="right">
                                <td align="right">
                                    <asp:ImageButton ID="detailedReport" runat="server" ImageUrl="../Images/b_detailed_report.gif" />
                                    <asp:ImageButton ID="summaryReport" runat="server" ImageUrl="../Images/b_summary_report.gif">
                                    </asp:ImageButton>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
